<?php

namespace App\Http\Requests;

class StoreGoodsAddThreeRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'goods_id'		    => 'required',
            'goods_price'		    => 'required',
            'market_price'		    => 'required',
        ];
    }
    
    public function messages()
	{
		return [
			'goods_id.required'		    => '参数错误，缺少商品ID',
			'goods_price.required'		    => '请填写商品价格',
			'market_price.required'		    => '请填写市场价',
		];
	}
}
